/**
 * Copyright (c) 2018-present, Chen Guodong
 * All rights reserved.
 *
 * @flow
 */


<template>
  <div class="title">
    <b class="icon"></b>
    {{title}}
    <span class="right">
      <slot name="right"></slot>
    </span>
  </div>
</template>

<script>
export default {
  props: {
    title: String
  },
  data() {
    return {};
  },
  components: {}
};
</script>

<style lang='less' scoped>
@import "../utils/theme.less";
.title {
  height: 20%;
  width: 100%;
  display: flex;
  padding: 0.6vw 0;
  font-size: 1.3rem;
  color: @font-primary;
  align-items: center;
  vertical-align: bottom;
  position: relative;
  .icon {
    height: 100%;
    width: 0.5vw;
    background: @blue;
    margin: 0 1vw;
    overflow: hidden;
    box-shadow: 0 0 1vw @blue;
  }
  .right {
    display: inline-block;
    position: absolute;
    right: 0;
    height: 100%;
    overflow: hidden;
    padding: 0.6vw 0;
    box-sizing: border-box;
    font-size: 1.3rem;
  }
}
</style>
